﻿#include "forgetpassword.h"
#include "ui_forgetpassword.h"
#include <QPainter>
ForgetPassword::ForgetPassword(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ForgetPassword)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::Dialog|Qt::FramelessWindowHint);    
    setAttribute(Qt::WA_TranslucentBackground,true);

}

ForgetPassword::~ForgetPassword()
{
    delete ui;
}

void ForgetPassword::on_confirm_pushButton_clicked()
{
    this->close();
}

void ForgetPassword::paintEvent(QPaintEvent *event)
{
    Q_UNUSED(event)
    QPainter painter(this);
    painter.fillRect(rect(),QColor(0,0,0,100));
}

void ForgetPassword::changeEvent(QEvent* event)
{
    switch (event->type())
    {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        QWidget::changeEvent(event);
        break;
    }
}

